import Vue from "vue";
const CITYS = [
  {value:"huizhou",label:"惠州"},
  {value:"guangzhou",label:"广州"},
  {value:"dongguan",label:"东莞"},
  {value:"foshan",label:"佛山"},
  {value:"zhongshan",label:"中山"},
  {value:"shenzhen",label:"深圳"}
];

Vue.filter("cityFilter", function(value) {
  for (let city of CITYS) {
    if (city.value === value) {
      return city.label;
    }
  }
});

